Design Patterns | Set 1 (Introduction) - Walking Techie

Blog about Java programming, Design Pattern, and Data Structure.

Sunday, July 3, 2016

Design Patterns | Set 1 (Introduction)

Design pattern is the re-usable form of solution to a commonly occurring problem in software design. A design pattern is not a finished design that can be directly transformed into code. The design pattern can speed up the development process by providing tested, proven development paradigm.

Design pattern are programming language independent strategies to solve common object-oriented design problems.

By using design patterns you can make your code usable, readable, flexible and maintainable.

Types of design pattern:
There are mainly three types of design patterns:
  1. Creational Design Pattern
  2. Structural Design Pattern
  3. Behavioral Design Pattern

Creational Design Pattern

Creation design pattern is all about class instantiation or object creation.This pattern can be further divided into class-creation patterns and object-creational patterns. While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation effectively to get the job done.
  1. Singleton Pattern
  2. Factory Method Pattern
  3. Abstract Factory Pattern
  4. Prototype Pattern
  5. Builder Pattern

Structural Design Pattern

Structural design patterns are all about Class and Object composition. They use inheritance to compose interfaces and define ways to compose objects to obtain new functionality.
  1. Adapter Pattern
  2. Bridge Pattern
  3. Composite Pattern
  4. Decorator Pattern
  5. Facade Pattern
  6. Flyweight Pattern
  7. Proxy Pattern

Behavioral Design Pattern

These design patterns are specifically concerned with communication between objects.
  1. Chain of responsibility Pattern
  2. Command Pattern
  3. Interpreter Pattern
  4. Iterator Pattern
  5. Mediator Pattern
  6. Memento Pattern
  7. Observer Pattern
  8. State Pattern
  9. Strategy Pattern
  10. Template Method Pattern
  11. Visitor Pattern
Reference: https://en.wikipedia.org/wiki/Design_Patterns

5 comments :